package object.mass;
import sim.Simulation;


/**
 * 
 * @author Niel Lebeck and Wynne Lok
 *
 */
public class FixedMass extends Mass {

    /**
     * @param id the ID of the Mass
     * @param x the starting x position of the Mass
     * @param y the starting y position of the Mass
     * @param mass the mass of the Mass
     */
    public FixedMass (int id, double x, double y, double mass) {
        super(id, x, y, mass);
    }

    /**
     * The FixedMass does not move, so update does nothing.
     * @param canvas the current Simulation
     * @param dt the amount of elapsed time
     */
    @Override
    public void update(Simulation canvas, double dt) {
        //a fixed mass does not move
    }

    @Override
    public double getMass() {
        return 0.0;
    }
}
